package com.market.goods.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(description = "es查询对象")
@Data
public class MarketGoodsVO {
    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    private String goodsId;

    /**
     * 经度
     */
    @ApiModelProperty("经度")
    private BigDecimal latitude;

    /**
     * 纬度
     */
    @ApiModelProperty("纬度")
    private BigDecimal longitude;

    /**
     * 商品名称
     */
    @ApiModelProperty("商品名称")
    private String goodsName;

    /**
     * 商品类型id
     */
    @ApiModelProperty("商品类型id")
    private Long goodsTypeId;

    /**
     * 商品标签
     */
    @ApiModelProperty("商品标签")
    private String goodsLabels;

    /**
     * 商品价格
     */
    @ApiModelProperty("商品价格")
    private BigDecimal goodsPrice;

    /**
     * 商户id
     */
    @ApiModelProperty("商户id")
    private String shopId;

    @ApiModelProperty("商户名称")
    private String shopName;

    @ApiModelProperty("版本号")
    private Integer version;

    @ApiModelProperty("创建时间")
    private Date createdTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("距离,单位米")
    private Long distance;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
}
